package ejb.contentManagement;

import java.util.List;

import ejb.dto.AirportDTO;

public interface AirportMgr {

	/**
	 * Return AirportDTO of the Airport entity identified by <code>id</code>
	 * @param id
	 * @return AirportDTO 
	 */
	AirportDTO getAirportDTO(int id);

	/**
	 * Return all AirportDTO
	 * @return all AirportDTO
	 */
	List<AirportDTO> getAllAirportsDTO();

	/**
	 * Delete Airport identified by <code>id</code> from database
	 * @param id
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	boolean deleteAirport(int id);

	/**
	 * Update Airport identified by <code>updatedAirport</code> in database
	 * @param updatedAirport
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	boolean updateAirport(AirportDTO updatedAirport);

	/**
	 * Insert Airport identified by <code>newAirport</code> in database
	 * @param newAirport
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	boolean insertAirport(AirportDTO newAirport);

}
